<include file="Public:header"/><body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <div class="nav">
		<ul class="cc">
			<li class="current"><a href="/Admins/News/advert/">新闻广告</a></li>
			<li ><a href="/Admins/News/advertadd/">添加广告</a></li>
		</ul>
	</div>
	<div class="search_type cc mb10">
       <a href="{:U('advert',array('action'=>1))}" class="{$act==1?'ct':''}">轮播广告</a><a href="{:U('advert',array('action'=>2))}"  class="{$act==2?'ct':''}">横条广告</a><a href="{:U('advert',array('action'=>3))}"  class="{$act==3?'ct':''}">详细页面广告</a>
    </div>
  

    <form name="myform" action="{:U('News/catesort')}" method="post" class="J_ajaxForm">
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
				<td width="10%">排序</td>
                <td width="5%">ID</td>
                <td width="30%">名称</td>
                <td>显示的位置</td>
				<td width="20%" align="center">是否显示</td>
                <td width="20%">管理操作</td>
            </tr>
            </thead>
            <foreach name="data" item="vo">
                <tr>
					<td><input name="sort" type="text" size="3" value="{$vo.sort}" class="input"></td>
                    <td>{$vo.id}</td>
                    <td><a href="javascript:void(0);" class="titl" oi="{$vo.image}" >{$vo.title}</a></td>
                    <td>
						<if condition="$vo.seat eq 1 "> 
							轮播广告
						<elseif condition="$vo.seat eq 2"/>
							横条广告
						<else /> 
							详细页面广告
						</if>
					</td>
					<td align="center"><span style="{$vo['style']==1?'':'color:red'}">{$vo['style']==1?'是':'否'}</span></td>
                    <td> <a href="{:U('News/advertedit',array('id'=>$vo[id]))}">修改</a> <a class="J_ajax_del" data-msg="确定删除该类别吗?" href="{:U('News/advertdel',array('cateid'=>$vo['id']))}">删除</a></td>
                </tr>
			
			
            </foreach>
        </table>
        
        
    </div>
</div>
</form>
</div>
<script src="__JS__/common.js"></script>
<script src="__JS__/imagePreview.js"></script>


<style type="text/css">
.titl{ color:#333333; text-decoration:none;}
.titl:hover{ color:#FF0000; text-decoration:none}
.search_type a{float:right; padding:5px 10px; margin:0 5px; background:#e6e6e6; color:#666; text-decoration:none;}
.search_type .ct{color: #ffffff; background: #266aae;}
</style>
<script type="text/javascript">
$(function(){
	$("a.titl").preview();	  
});
</script>

</body>
</html>